'''
This script dump all parameters into a ppf file and an eqt file in the force field table.
Usage:
    dumpall.py dbname tablename result.ppf
For Example:
    dumpall.py mydatabase.dffdb AMBER1 all.ppf
    It dump all content of AMBER1 in mydatabase.dffdb into all.ppf and all.eqt
Created on 2009-8-26

@author: madlee
'''

if __name__ == '__main__':
    from sys import argv
    if len(argv) != 4:
        print __doc__
    else:
        from kuai.dff.dffdb import Database
        db = Database(argv[1], argv[2])
        db.dumpall(argv[3])
        print "The result was saved into %s" % argv[3]
        
